package cn.sx.guoxd.springboot.service;

public class ServiceB {
    private ServiceA serA = new ServiceA();

    public void  method1(){
        serA.MyEvent.subscribe(str-> System.out.println(str));
        serA.method1();
    }
}
